package net.lab1024.smartadmin.module.weapp.orders.domain.vo;

import lombok.Data;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import net.lab1024.smartadmin.module.system.department.domain.dto.DepartmentVO;
import net.lab1024.smartadmin.module.system.department.domain.entity.DepartmentEntity;
import net.lab1024.smartadmin.module.system.employee.domain.dto.EmployeeDTO;
import net.lab1024.smartadmin.module.system.employee.domain.entity.EmployeeEntity;
import net.lab1024.smartadmin.module.weapp.orders.domain.dto.OrdersPics;
import net.lab1024.smartadmin.module.weapp.orders.domain.entity.OrdersCommentEntity;
import net.lab1024.smartadmin.module.weapp.orders.domain.entity.OrdersDetailEntity;
import net.lab1024.smartadmin.module.weapp.orderstype.domain.vo.WorkOrderTypeVO;

/**
 *  [  ]
 *
 * @author wuqian
 * @version 1.0
 * @company 五千
 * @copyright (c) 五千Inc. All rights reserved.
 * @date  2021-03-10 15:12:30
 * @since JDK1.8
 */
@Data
public class OrdersVO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("可见范围 1 ")
    private Integer visibleRange;

    @ApiModelProperty("工单类型 1 ")
    private Long wot;

    @ApiModelProperty("工单类型 2")
    private WorkOrderTypeVO typeObj;

    @ApiModelProperty("no")
    private String no;

    @ApiModelProperty("工单名称")
    private String title;

    @ApiModelProperty("工单提交者")
    private Long fromUid;

    @ApiModelProperty("联系人姓名")
    private String actualName;

    @ApiModelProperty("from_openid")
    private String fromOpenid;

    @ApiModelProperty("提交人")
    private EmployeeDTO fromUserObj;

    @ApiModelProperty("to_uid")
    private Long toUid;

    @ApiModelProperty("接受者提交人")
    private EmployeeDTO toUserObj;

    @ApiModelProperty("to_openid")
    private String toOpenid;


    @ApiModelProperty("二级管理员")
    private String toOpenid2;

    @ApiModelProperty("部门id")
    private Long departmentId;

    @ApiModelProperty("部门obj")
    private DepartmentEntity departmentObj;

    @ApiModelProperty("联系人电话")
    private String mobile;

    @ApiModelProperty("问题描述")
    private String problemDetails;

    @ApiModelProperty("图片")
    private List<OrdersPics> pics;

    @ApiModelProperty("工单状态 0 初始 1 已接受  2 已完成")
    private Integer statue;

    @ApiModelProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("sendTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendTime;


    @ApiModelProperty("是否已读")
    private Integer isRead;

    @ApiModelProperty("处理意见")
    private List<OrdersDetailVO> detailList;

    @ApiModelProperty("评论列表")
    private List<OrdersCommentVO> commentList;

    @ApiModelProperty("是否已经点赞")
    private Integer isLiks;

    @ApiModelProperty("WaitTime")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date waitTime;

    @ApiModelProperty("completeTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date completeTime;

    @ApiModelProperty("管理员列表")
    private List<EmployeeDTO> mlist;

    @ApiModelProperty("工单重要等级描述")
    private String levelDesc;
}
